import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 行动召回邀约查询
export const getinsuranceList = params =>
  axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/birthdayRemind/queryActivitiesInvite`, {
    params
  });
// 品牌 - 下拉框
export const getPinpSelect = params =>
  axios.get(`/api/basedata/vehicleProduct/brandsqueryall`, {
    params
  });
// 服务顾问 - 下拉框
export const getUserListSelect = params =>
  axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10071011`, {
    params
  });

// 服务活动 - 下拉框
export const getActivitySelect = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/market/serviceActivityManage/queryActivity`, {
    params
  });
// 服务活动导出
export const exportActivitiesInvite = params =>
  axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customer/birthdayRemind/exportActivitiesInvite`, {
    params,
    responseType: 'arraybuffer'
  });

  // 服务活动 - 下拉框
export const getBzd = params =>
axios.get(`${SERVER.DMSCLOUD_REPAIR}/query/bzd`, {
  params
});
